package zuoye4;

public class Test {

	public static void main(String[] args) {
		Animal v1 = new Cat();
		Animal v2 = new Dog();
		Animal v3 = new Eagle();
		Master v4 = new Master();
		v4.feed(v1);
		v4.feed(v2);
		v4.feed(v3);
	}

}
